//所有和团队管理相关的请求

import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"

//查询团队
export const findTeamsApi = (data) =>{
   return httpPost('/teams/search',data)
}
//添加团队
export const addTeamApi = (data) =>{
   return httpPost('/teams/add',data)
}
//修改团队
export const updateTeamApi = (data) =>{
   return httpPut('/teams/update',data)
}
//删除团队
export const deleteTeamApi =(data) =>{
   return httpDelete('/teams/remove',data)
}

//获取团队详情
export const getTeamInfoApi =(data) =>{
   return httpGet('/teams/detail',data)
}